package com.ddyx.rest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ddyx.util.template.TemplateMessageUtil;

/**
 * @ClassName: CommonUtilsController.java
 * @Description: 该controller用于前端请求的公共方法
 * @author: liuhoujie
 * @date: 2018年3月19日
 */
@Controller
@RequestMapping("/commonUtils")
public class CommonUtilsController {
	
	/**
	 * @description 获取微信token
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value = "getAccessToken" , method = RequestMethod.GET)
	public String getAccessToken() {
		return TemplateMessageUtil.getToken();
	}
}
